import { z } from "zod";

export interface TableDataProps {
  currentPage?: number;
  pageSize?: number;
  search?: string;
  column?: string;
  order?: string;
}

export const BaseModel = z.object({
  id: z.string().transform(v => parseInt(v)).optional(),
  created_at: z.string().transform(v => new Date(v)).optional(),
  updated_at: z.string().transform(v => v ? new Date(v) : null).optional(),
  status: z.string().transform(v => parseInt(v)).optional(),
});